/*Domain class of table m_driveinfo*/
package com.mycollab.common.domain;

import com.mycollab.core.arguments.ValuedBean;
import com.mycollab.db.metadata.Column;
import com.mycollab.db.metadata.Table;
import javax.validation.constraints.NotNull;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.ibatis.type.Alias;

@SuppressWarnings("ucd")
@Table("m_driveinfo")
@Alias("DriveInfo")
public class DriveInfo extends ValuedBean {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_driveinfo.id
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    @Column("id")
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_driveinfo.sAccountId
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    @NotNull
    @Column("sAccountId")
    private Integer saccountid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_driveinfo.usedVolume
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    @Column("usedVolume")
    private Long usedvolume;

    private static final long serialVersionUID = 1;

    public final boolean equals(Object obj) {
        if (obj == null) { return false;}
        if (obj == this) { return true;}
        if (!obj.getClass().isAssignableFrom(getClass())) { return false;}
        DriveInfo item = (DriveInfo)obj;
        return new EqualsBuilder().append(id, item.id).build();
    }

    public final int hashCode() {
        return new HashCodeBuilder(515, 535).append(id).build();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_driveinfo.id
     *
     * @return the value of m_driveinfo.id
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table m_driveinfo
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public DriveInfo withId(Integer id) {
        this.setId(id);
        return this;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_driveinfo.id
     *
     * @param id the value for m_driveinfo.id
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_driveinfo.sAccountId
     *
     * @return the value of m_driveinfo.sAccountId
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public Integer getSaccountid() {
        return saccountid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table m_driveinfo
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public DriveInfo withSaccountid(Integer saccountid) {
        this.setSaccountid(saccountid);
        return this;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_driveinfo.sAccountId
     *
     * @param saccountid the value for m_driveinfo.sAccountId
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public void setSaccountid(Integer saccountid) {
        this.saccountid = saccountid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_driveinfo.usedVolume
     *
     * @return the value of m_driveinfo.usedVolume
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public Long getUsedvolume() {
        return usedvolume;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table m_driveinfo
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public DriveInfo withUsedvolume(Long usedvolume) {
        this.setUsedvolume(usedvolume);
        return this;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_driveinfo.usedVolume
     *
     * @param usedvolume the value for m_driveinfo.usedVolume
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public void setUsedvolume(Long usedvolume) {
        this.usedvolume = usedvolume;
    }

    public enum Field {
        id,
        saccountid,
        usedvolume;

        public boolean equalTo(Object value) {
            return name().equals(value);
        }
    }
}